Repository navigation
fix(aggregator): validate ProjectPoolItem feed entries structurally (#2418) - #4181
Conversation
…2418) isProjectPoolItem now checks the required url/projectUrl strings, contentKind issue|pr, status/area/horizon/kind as string-or-null, and present-optional types (databaseId number, draft boolean, labels string[], author/updatedAt strings). Malformed entries drop at the feed gate instead of crashing board/item renders. Regression tests in feed.test.ts.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6995c972fe
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Fixes #2418. Queue task 5327.
isProjectPoolItemnow matches the declaredProjectPoolItemstructure:url/projectUrlstrings andcontentKindexactlyissue|pr;status/area/horizon/kindeach string or null (required);databaseIdnumber,draftboolean,labelsarray of only strings,author/updatedAtstrings; absent optional fields remain valid.Malformed entries now drop at the feed gate (
poolFromFeedfail-soft) instead of crashing board/item renders; a mixed pool drops only the malformed entries.Tests: new regression test in
test/feed.test.tscovers labels='blocked', labels=[42], missing url/projectUrl/contentKind, wrong required-nullable and present-optional types, absent-optionals valid, and mixed-pool drop-only-bad.bun test test/feed.test.ts: 38 pass. Full aggregator suite: 1001 pass / 3 fail — identical to the clean-main baseline verified this shift (usage Pace projections, slice-3 routes, flaky render service-detail).Need help on this PR? Tag
@codesmith-botwith what you need.